/*
 *  SyncIT , easy synchronization of files between computers and devices.
 *  Copyright (C) 2011  Christian Masus <cmasus(at)gmail.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version. If redistributing and/or modifying
 *  this file, this notice must be included in the redistributed or
 *  modified copy.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package config;

/**
 * Interface for the config package.
 * @author Christian Masus
 *
 */
public interface ConfigInterface {

	public String getConfigPath();

	public boolean addElement(String path, String className);
	public boolean addList(String path, String className);
	public int addListElement(String path);
	public boolean deleteListElement(String path, int listIndex);
	public boolean moveListElement(String path, int from, int to);

	public boolean setVariable(String path, String name, Object value);
	public boolean setVariable(String path, String name, Object value, boolean save);
	public Object getVariable(String path, String name);
	public String getVariableString(String path, String name);
	public int getVariableInteger(String path, String name);
	public boolean getVariableBoolean(String path, String name);

	public boolean setListVariable(String path, int listIndex, String name, Object value);
	public boolean setListVariable(String path, int listIndex, String name, Object value, boolean save);
	public Object getListVariable(String path, int listIndex, String name);
	public String getListVariableString(String path, int listIndex, String name);
	public int getListVariableInteger(String path, int listIndex, String name);
	public boolean getListVariableBoolean(String path, int listIndex, String name);
	public int getListSize(String path);
}
